<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%
	request.setCharacterEncoding("UTF-8");
	String par = request.getParameter("err");
	int err = 0;
	if(par != null)
	{
		err = Integer.parseInt(par);
	}
%>
<body>
	<form action="Upload" enctype="multipart/form-data" method="post" name="form">
		<input type="file" name="upload"/>
		<p>
		<input type="submit" name="sub" value="Submit"/>
		<input type="reset" name="rst" value="Reset"/>
		</p>
		<%
			if(err == 1)
			{
				out.print("错误的文件类型，请重新选择！");
			}
		%>
	</form>
</body>
</html>